package com.ssc.chain.tcfp.core.client;

/**
 * @author mingjian
 * @version 1.0
 * Create by 2025/7/10 17:22
 */


import lombok.Data;
import org.springframework.util.unit.DataSize;

import java.time.Duration;

@Data
//@ConfigurationProperties(prefix = "tcfp.client")
public class TcfpClientConfig {

    /**
     * 上传分块大小，默认5MB
     */
    private DataSize chunkSize = DataSize.ofMegabytes(5);

    /**
     * 重试次数
     */
    private int retry = 3;

    /**
     * 连接超时时间，默认10秒
     */
    private Duration connectTimeout = Duration.ofSeconds(10);
}
